package web.chitietsp;

public class chitietsp {
	private String masp;
	private String mactsp;
	private String mausac;
	private double gia;
	private float size;
	private String hinh;
	public chitietsp(String masp,String mactsp,String mausac,double gia,float size,String hinh){
		this.masp=masp;
		this.mactsp=mactsp;
		this.mausac=mausac;
		this.gia=gia;
		this.size=size;
		this.hinh=hinh;
	}
	public chitietsp(){
		
	}
	public String getMasp() {
		return masp;
	}
	public void setMasp(String masp) {
		this.masp = masp;
	}
	public String getMactsp() {
		return mactsp;
	}
	public void setMactsp(String mactsp) {
		this.mactsp = mactsp;
	}
	public String getMausac() {
		return mausac;
	}
	public void setMausac(String mausac) {
		this.mausac = mausac;
	}
	public double getGia() {
		return gia;
	}
	public void setGia(double gia) {
		this.gia = gia;
	}
	public float getSize() {
		return size;
	}
	public void setSize(float size) {
		this.size = size;
	}
	public String getHinh() {
		return hinh;
	}
	public void setHinh(String hinh) {
		this.hinh = hinh;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((mactsp == null) ? 0 : mactsp.hashCode());
		result = prime * result + ((masp == null) ? 0 : masp.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		chitietsp other = (chitietsp) obj;
		if (mactsp == null) {
			if (other.mactsp != null)
				return false;
		} else if (!mactsp.equals(other.mactsp))
			return false;
		if (masp == null) {
			if (other.masp != null)
				return false;
		} else if (!masp.equals(other.masp))
			return false;
		return true;
	}
	
}
